package com.drg.center.controller;

import com.drg.center.entity.result.DoctorVO;
import com.drg.center.service.SysDoctorService;
import com.guaike.core.entity.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: zhangxilin
 * @Date: 2024/12/21
 */

@RestController
@RequestMapping("/doctor")
@Api(tags = "医生管理接口组")
public class SysDoctorController {

    @Autowired
    private SysDoctorService sysDoctorService;

    @GetMapping("/list")
    @ApiOperation(value = "列表")
    public Result<List<DoctorVO>> list(@ApiParam("医生姓名或者编号") @RequestParam(value = "keyword", required = false)  String keyword){
        return sysDoctorService.list(keyword);
    }
}
